package com.pw.study.structure.stack;

/**
 * @description:
 * @author: linux_future
 * @date: 2022/11/25
 */
public class StackClient {
    public static void main(String[] args) {

        char c = '+';
        int x = Integer.valueOf(c);
        System.out.println(c+"==="+x);
        int b=66;
        char x1 = (char) x;

        System.out.println(x1);
        char c1 = String.valueOf(43).charAt(0);
        System.out.println(c1);


    }

    /**
     * 测试栈
     */
    private static void stackTest1() {
        ArrayStack stack = new ArrayStack(6);
        stack.push(1);
        stack.push(2);
        stack.push(3);

        stack.list();
        stack.pop();
        stack.list();
        stack.push(4);
        stack.list();
    }
}
